package com.crazyhat.crazyhat.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.crazyhat.crazyhat.entity.Footprint;
import com.crazyhat.crazyhat.pojo.Result;
import com.crazyhat.crazyhat.service.IFootprintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/footprint")
public class FootprintController {
    @Autowired
    private IFootprintService footprintService;

    @RequestMapping("/getPersonalFootprint")
    public Result<Page<Footprint>> getPersonalFootprint(int pageNum, int pageSize){
        return Result.success(footprintService.getPersonalFootprint(pageNum,pageSize));
    }
}
